package com.iris.jvmtest.heapAndStack;
/**
 * @date : 2017年10月11日 下午2:14:16
 * @author : Iris.Xiao
 * @version : 1.0
 * @description : -Xms10m -Xmx10m -Xss1m -XX:+HeapDumpOnOutOfMemoryError
*/
public class StackOutMemoryTest {
	private int stackLength=0;
	public void stackLeak(){
		stackLength++;
		stackLeak();
	}
	public static void main(String[] args) {
		StackOutMemoryTest test = new StackOutMemoryTest();
		try {
			test.stackLeak();
		} catch (Exception e) {
			System.out.println(test.stackLength+"==catch=====");
		}finally {
			System.out.println(test.stackLength+"========");
		}
		System.out.println("===========end");
	}
}
